//
//  LoadingView.m
//  A段项目,漫画
//
//  Created by dllo on 15/4/25.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "LoadingView.h"

@implementation LoadingView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.witeView = [[UIView alloc] init];
        self.witeActivity = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
        self.witeActivity.center = CGPointMake(self.witeView.center.x, self.witeView.center.y);
        [self.witeActivity release];
    }
    return self;
}

//单例
+(instancetype)shareLoading{
    static LoadingView *loadingView = nil;
    static dispatch_once_t oneToTake;
    dispatch_once(&oneToTake, ^{
        loadingView = [[LoadingView alloc] init];
    });
    return loadingView;
}

@end
